﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Web.Controller" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%var site = v.data("site") as m_site; %>
<%var lngs = site.lngs; %>
<%var dlngs = site.dlngs; %>
<%var bbstyperead = v.data("typeread") as Bbs_TypeList; %>
<%var member = v.data("member") as wojilu.Members.Users.Domain.User; %>
<%var Profile = member.Profile; if (Profile == null) Profile = new wojilu.Members.Users.Domain.MemberProfile(); %>

<!DOCTYPE html>
<html lang="pla">
<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0" />
	<title>#{pageTitle}</title>
    <meta name="Keywords" content="#{pageKeywords}" />
    <meta name="description" content="#{pageDescription}" />
	<link rel="stylesheet" href="#{site.templates}css/style_en.css" type="text/css" media="all" />

	<script src="#{site.templates}js/jquery-1.8.0.min.js" type="text/javascript"></script>
	<script src="#{site.templates}js/jquery.touchwipe.1.1.1.js" type="text/javascript"></script>
	<script src="#{site.templates}js/jquery.carouFredSel-5.5.0-packed.js" type="text/javascript"></script>
	<script src="#{site.templates}js/functions.js" type="text/javascript"></script>
	<script type="text/javascript" src="#{path.js}ybb/js/basicrun.js"></script>
</head>
<body>
	<!-- wrapper -->
	<div class="wrapper">
		<!-- header -->
		#{top}
		<!-- end of header -->		
        <!-- shell -->
		<div class="shell">
			<!-- main -->
			<div class="main">
				<section class="post_liuyan">
								<ul>
								<li><span>#{site.position}:</span>
								<a href="#{site.dir}">#{site.hometitle}</a>&nbsp;&gt;&gt;&nbsp;#{daohang}</li>
								</ul>
				</section>	
					<div class="post-cnt">
						<h2>ONLINE MESSAGE</h2>
					</div>	
					<div class="clear"></div>

                   <!--~列表开始~-->
                                <div class="righttext" style="margin-left: 100px;">
                                    <div class="readlist">
                                        <div class="l">
                                            <script type="text/javascript">
                                                var forum_title_err = "<%=YBBCommon.GetLangStr(lngs, "forum_title_err")%>";
                                                var forum_input_err = "<%=YBBCommon.GetLangStr(lngs, "forum_input_err")%>";
                                                var email_err = "<%=YBBCommon.GetLangStr(lngs, "email_err")%>";
                                                var seccode_empty = "<%=YBBCommon.GetLangStr(lngs, "seescodeerr")%>";
                                            </script>
                                            <form name="bbsmainform" method="post" action="#{site.forumsave}" onsubmit="return forumcreat('<%=bbstyperead.isseccode %>')">
                                                <input type="hidden" name="userid" value="<%=member.Id %>" />
                                                <input type="hidden" name="inputclass" value="add" />
                                                <input type="hidden" name="btid" value="<%=bbstyperead.Id %>" />
                                                <input type="hidden" name="lng" value="<%=lngs %>" />
                                                <table class="formlist" style="width: 650px;">
                                                    <tr>
                                                        <th class="fontsize14" width="15%">* Subject</th>
                                                        <td>
                                                            <input type="text" name="title" class="infoInput" style="width: 95%;" /></td>
                                                    </tr>
                                                    <tr>
                                                        <th class="fontsize14">* Screen name</th>
                                                        <td style="text-align: left;">
                                                            <div style="margin-left: 0;">
                                                                <input type="text" name="username" class="infoInput" value="<%=member.RealName %>" style="width: 50%;" />
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <th class="fontsize14">* E-mail</th>
                                                        <td style="text-align: left;">
                                                            <input type="text" name="email" class="infoInput" value="<%=member.Email %>" style="width: 50%;" /></td>
                                                    </tr>
                                                    <tr>
                                                        <th class="fontsize14">* Enter your comment here:</th>
                                                        <td>
                                                            <textarea name="content" rows="15" class="infoInput ybbtextarea" style="width: 95%; height: 150px;"></textarea></td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" class="td01 fontsize14">The following is optional</td>
                                                    </tr>
                                                    <tr>
                                                        <th class="fontsize14">QQ</th>
                                                        <td style="text-align: left;">
                                                            <input type="text" name="qq" class="infoInput" value="<%=member.QQ %>" style="width: 50%;" /></td>
                                                    </tr>
                                                    <tr>
                                                        <th class="fontsize14">MSN</th>
                                                        <td style="text-align: left;">
                                                            <input type="text" name="msn" class="infoInput" value="<%=member.MSN %>" style="width: 50%;" /></td>
                                                    </tr>
                                                    <tr>
                                                        <th class="fontsize14">Address</th>
                                                        <td style="text-align: left;">
                                                            <input type="text" name="address" class="infoInput" value="<%=Profile.Address %>" style="width: 70%;" /></td>
                                                    </tr>
                                                    <tr>
                                                        <th class="fontsize14">Tel</th>
                                                        <td style="text-align: left;">
                                                            <input type="text" name="tel" class="infoInput" value="<%=Profile.Tel %>" style="width: 20%;" /></td>
                                                    </tr>
                                                    <tr>
                                                        <th class="fontsize14">Mobile</th>
                                                        <td style="text-align: left;">
                                                            <input type="text" name="mobile" class="infoInput" value="<%=Profile.Mobile %>" style="width: 20%;" /></td>
                                                    </tr>
                                                    <%if (bbstyperead.isseccode == 1) { %>
                                                    <tr>
                                                        <th class="fontsize14">* Type the code shown</th>
                                                        <td style="text-align: left;">
                                                            <input type="text" id="seccode" name="seccode" class="infoInput" maxlength="4" size="5" style="text-transform: uppercase;" />
                                                            <img title="Try a new code" id="memberseccodesrc" onclick="this.src='#{path}VerifyCode.ashx?len=4&secode=ybb_seccode&t='+(new Date().getTime());" src="#{path}VerifyCode.ashx?len=4&secode=ybb_seccode" style="cursor: pointer;" align="absmiddle" />
                                                        </td>
                                                    </tr>
                                                    <%} %>
                                                    <tr>
                                                        <th></th>
                                                        <td>
                                                            <input type="submit" name="submit" value="Add your comment" class="buttonface2" /></td>
                                                    </tr>
                                                </table>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                                <!--~列表结束~-->
      <div class="clear"></div>
					<div class="cl"></div>
				
				</div>

			</div>
			<!-- end of main -->
		</div>
		<!-- end of shell -->	
		<!-- footer -->
		#{bottom}
		<!-- footer -->
	</div>
	<!-- end of wrapper -->
</body>
</html>		